package com.ruoyi.knowledge.service;

import java.util.List;
import com.ruoyi.knowledge.domain.QualityDiseasesCatalogue;

/**
 * 常见质量通病目录Service接口
 * 
 * @author ruoyi
 * @date 2024-07-14
 */
public interface IQualityDiseasesCatalogueService 
{
    /**
     * 查询常见质量通病目录
     * 
     * @param catalogueId 常见质量通病目录主键
     * @return 常见质量通病目录
     */
    public QualityDiseasesCatalogue selectQualityDiseasesCatalogueByCatalogueId(Long catalogueId);

    /**
     * 查询常见质量通病目录列表
     * 
     * @param qualityDiseasesCatalogue 常见质量通病目录
     * @return 常见质量通病目录集合
     */
    public List<QualityDiseasesCatalogue> selectQualityDiseasesCatalogueList(QualityDiseasesCatalogue qualityDiseasesCatalogue);

    /**
     * 新增常见质量通病目录
     * 
     * @param qualityDiseasesCatalogue 常见质量通病目录
     * @return 结果
     */
    public int insertQualityDiseasesCatalogue(QualityDiseasesCatalogue qualityDiseasesCatalogue);

    /**
     * 修改常见质量通病目录
     * 
     * @param qualityDiseasesCatalogue 常见质量通病目录
     * @return 结果
     */
    public int updateQualityDiseasesCatalogue(QualityDiseasesCatalogue qualityDiseasesCatalogue);

    /**
     * 批量删除常见质量通病目录
     * 
     * @param catalogueIds 需要删除的常见质量通病目录主键集合
     * @return 结果
     */
    public int deleteQualityDiseasesCatalogueByCatalogueIds(Long[] catalogueIds);

    /**
     * 删除常见质量通病目录信息
     * 
     * @param catalogueId 常见质量通病目录主键
     * @return 结果
     */
    public int deleteQualityDiseasesCatalogueByCatalogueId(Long catalogueId);

    QualityDiseasesCatalogue getTree();

    Long queryIdByPid(Long catalogueId);

    Long queryIdByPid1(Long catalogueId);
}
